#!/usr/bin/env node


//引入package.json ，加入"type":"module"
import { readFile } from 'fs/promises';

async function main(){
try{
  const file = process.argv[2];

  const content = await readFile(file,'utf8');
  console.log(content);
  }

catch(e){
  console.error(e.message);
  }
}
main();
//console.log('hello','world');
